package com.icss.train_sys_back.service.ticket_manage.Impl;

import com.icss.train_sys_back.entity.ticket_manage.ChangeTicketEntity;
import com.icss.train_sys_back.mapper.ticket_manage.ChangeTicketMapper;
import com.icss.train_sys_back.service.ticket_manage.ChangeTicketService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 小泽
 * @createTime 2025/10/7 18:29
 */
@Service
public class ChangeTicketServiceImpl implements ChangeTicketService {
    @Autowired
    private ChangeTicketMapper changeTicketMapper;

    //改签记录分页+条件查询
    @Override
    public List<ChangeTicketEntity> getListConditions(String changeId, String orderId, String username, Integer status) {
        return changeTicketMapper.getListConditions(changeId,orderId,username,status);
    }

    //改签审核通过处理
    @Override
    public void updateStatus(String changeId, Integer updateStatus) {
        changeTicketMapper.updateStatus(changeId,updateStatus);
    }

    //改签审核拒绝退票处理
    @Override
    public void updateStatusReject(String changeId, String remark) {
        changeTicketMapper.updateStatusReject(changeId,remark);
    }
}
